<%
/**
 *  edit 异常信息编辑
 * 
 * @author   张彬
 * @version v1.0
 * @date     2011-10-08
 * @since   JDK1.6
 */
%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="at" uri="/WEB-INF/util_tag.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><s:text name="exception.edit.title"></s:text></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="no-cache" http-equiv="Pragma"/>
		<meta content="no-cache" http-equiv="Cache-Control"/>
		<meta content="0" http-equiv="Expires"/>
		<meta name="GENERATOR" content="MSHTML 8.00.6001.18854"/>
		<link rel="stylesheet" id="edit" type="text/css" href="<at:url css="edit.css"/>" />
		<link rel="stylesheet" type="text/css" id="list" href="<at:url css="list.css"/>" />	
		<link rel="stylesheet" href="${rootPath}/Common/Js/validation-engine-2.2/css/validationEngine.jquery.css" type="text/css"/>
        <link rel="stylesheet" href="${rootPath}/Common/Js/validation-engine-2.2/css/template.css" type="text/css"/>	
		<link rel="stylesheet" type="text/css" id="banner" href="<at:url css="banner_button.css"/>" />
		<script type="text/javascript" src="${rootPath}/Common/Js/jquery.js"></script>		
		<script type="text/javascript" src="${rootPath}/Common/Js/select.js"></script>
		<script type="text/javascript" src="${rootPath}/Common/Js/common.js"></script>	
		<script type="text/javascript" src="<at:url js="edit.js"/>"></script>
		<script type="text/javascript" src="${rootPath}/Common/Js/validation-engine-2.2/languages/jquery.validationEngine-cn.js"  charset="utf-8"></script>
        <script type="text/javascript" src="${rootPath}/Common/Js/validation-engine-2.2/jquery.validationEngine.js"  charset="utf-8"></script>
		<script type="text/javascript" src="<at:url js="banner_button.js"/>"></script>
		<script type="text/javascript">
			/**
			 * 保存操作 
			 */
			function save() {
				if($("#webForm").validationEngine('validate')){
					startRequest("Exception!edit", function(){
						var url = "Exception!list?flag=list&page=${page}&funId=${funId}";
						setTimeout(function(){
						    window.location.href = url;
						},0);
					}, $("#webForm").serialize());
				}
			}
			
			/**
			 * 更新操作 
			 */
			function update() {
				if($("#webForm").validationEngine('validate')){
					startRequest("Exception!edit", function(){
						var url = "Exception!listflag=list&?page=${page}&funId=${funId}";
						setTimeout(function(){
						    window.location.href = url;
						},0);
					}, $("#webForm").serialize());
				}
			}
			
			/**
			 * 操作成功提示 
			 */
			function opHandler(data, textStatus) {
				alert('<s:text name="js.common.success"></s:text>!');
			}
			
			/**
			 * 重置操作 
			 */
			function reset() {
				document.getElementById("webForm").reset();
			}
			
			/**
			 * 返回列表操作 
			 */
			function ret(){				
				if(window.confirm('<s:text name="js.common.back"></s:text>？')){
					var url = "Exception!list?flag=list&page=${page}&funId=${funId}";
					setTimeout(function(){
					    window.location.href = url;
					},0);
				}	
			}

			/**
			 * validation-engine 表单验证 
			 */
			jQuery(document).ready(function(){
                jQuery("#webForm").validationEngine({
	            	validationEventTriggers:"keyup blur",  //触发的事件  validationEventTriggers:"keyup blur",   
	           		inlineValidation: true,//是否即时验证，false为提交表单时验证,默认true   
	            	success :  false,//为true时即使有不符合的也提交表单,false表示只有全部通过验证了才能提交表单,默认false   
	            	promptPosition: "topRight"//提示所在的位置，topLeft, topRight, bottomLeft,  centerRight, bottomRight   
	            	//failure : function() { alert("验证失败，请检查。");  }//验证失败时调用的函数   
	            	//success : function() { callSuccessFunction() },//验证通过时调用的函数   
	            });
            });
			
		</script>
	</head>
	<body>		
		<form class="form-style" action="" method="post" id="webForm" name="webForm">
			<input type="hidden" name="object.id" value="${object.id}"/>
			<input type="hidden" name="flag" value="${flag}"/>
			<input type="hidden" name="funId" value="${funId}"/>
			<input type="hidden" name="page" value="${page}"/>
			<input type="hidden" name="object.code" value="${object.code}"/>
			
			
			
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>
						<!-- 位置 -->
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="2%">
									&nbsp;
								</td>
								<td height="20" valign="bottom">
									当前位置：<a href="#">系统配置</a>-&gt;<font color="#ff0000">异常信息</font>
								</td>
							</tr>
						</table>
						<!-- 主表 -->
						<table width="100%" border="0" cellspacing="0" cellpadding="0"	style="margin-top: 5px;">
							<tr>
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0" height="24px">
										<tr>
											<td width="5" height="24" id="kjz03"></td>
											<td class="biao1_zhong">
												<table width="100%" border="0" cellspacing="0"	cellpadding="0">
													<tr>
														<td height="24" valign="middle" class="font_3">
															[系统信息]
														</td>
													</tr>
												</table>
											</td>
											<td width="5" height="24" id="kjy03"></td>
										</tr>
									</table>
								</td>
							</tr>
							<!-- 显示主体行 -->
							<tr>
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="1" class="biao3_zuo"></td>
											<td>
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td> 													
															<table width="100%" border="0" cellspacing="0" cellpadding="0" rules="groups">
																<tr>
																	<td width="30%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>
																				<td align="right" valign="middle" class="font_1">
																					异常类<font color="red">*</font>
																				</td>																				
																			</tr>
																		</table>
																	</td>
																	<td width="70%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>																				
																				<td align="left">
																					<input class="validate[required]" type="text" id="exceptionClass" name="object.exceptionClass" value="${object.exceptionClass}" style="width:80%"/>
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
																
																<!-- 行分割线 -->
																<tr>
																	<td height="1" class="biaotiao_xia" colspan="2"></td>																	
																</tr>											
																<tr>
																	<td width="30%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>
																				<td align="right" valign="middle" class="font_1">
																					出错原因<font color="red">*</font>
																				</td>																				
																			</tr>
																		</table>
																	</td>
																	<td width="70%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>																				
																				<td align="left">
																					<input class="validate[required]" type="text" id="causedBy" name="object.causedBy"  value="${object.causedBy}" style="width:80%"/>
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td height="1" class="biaotiao_xia" colspan="2"></td>																	
																</tr>											
																<tr>
																	<td width="30%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>
																				<td align="right" valign="middle" class="font_1">
																					出错描述<font color="red">*</font>
																				</td>																				
																			</tr>
																		</table>
																	</td>
																	<td width="70%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>																				
																				<td align="left">
																					<input class="validate[required]" type="text" id="errorDescribe" name="object.errorDescribe"  value="${object.errorDescribe}" style="width:80%"/>
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td height="1" class="biaotiao_xia" colspan="2"></td>																	
																</tr>											
																<tr>
																	<td width="30%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>
																				<td align="right" valign="middle" class="font_1">
																					解决方案<font color="red">*</font>
																				</td>																				
																			</tr>
																		</table>
																	</td>
																	<td width="70%" height="100%" class="biantiao_you">
																		<table width="100%" border="0" cellspacing="5" cellpadding="5">
																			<tr>																				
																				<td align="left">
																					<textarea name="object.resolveWay" rows="4" cols="53" style="width:80%">${object.resolveWay}</textarea>
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
																 					
																									
																															
															</table>															
														</td>
													</tr>
												</table>
											</td>
											<td width="1" class="biao3_you"></td>
										</tr>
									</table>
								</td>
							</tr>
							<!-- 按钮行 -->
							<tr>
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="4" height="24" id="kj2z03"></td>
											<td class="biao3_xia">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td height="24" class="biao4_zhong">
															<div id="nav_01">
																<ul>
																	<li>
																		<a href="#" onclick="ret();">返回</a>
																	</li> 							
																	<li>
																		<a href="#" onclick="reset();">重置</a>
																	</li>
																	<li>
																		<a href="#" onclick="update();">更新</a>
																	</li> 
																	<li>
																		<a href="#" onclick="save();">保存</a>
																	</li> 																	 
																</ul>
															</div>
														</td>
													</tr>
												</table>
											</td>
											<td width="4" height="24" id="kj2y03"></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>								
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
